package cn.cloud.butler.scheduled.repository;

import cn.cloud.butler.scheduled.domain.StateDayEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface StateDayRepository extends JpaRepository<StateDayEntity,Long> {
    @Query(value=" select *   from StateDay s where s.State in ?1 and s.UploadType = 0", nativeQuery = true)
    List<StateDayEntity> findByStateIn(List<String> stateList);
}
